package io.geekidea.springboot.controller;

import io.geekidea.springboot.entity.Zcjbxx;
import io.geekidea.springboot.service.IZcjbxxService;
import io.geekidea.springboot.vo.ResponseResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 资产基本信息 前端控制器
 * </p>
 *
 * @author mybatis-plus-generator
 * @since 2024-08-01
 */
@RestController
@RequestMapping("/guozi/zcjbxx")
@Tag(description = "资产基本信息", name = "资产基本信息")
public class ZcjbxxController {

    @Autowired
    private IZcjbxxService zcjbxxService;

    @GetMapping("gztj")
    @Operation(summary = "今日关注统计查询")
    public ResponseResult<List<Zcjbxx>> time(@RequestParam(value = "areaCode") @Parameter(description = "区划代码", required = true) String areaCode,
                                             @RequestParam(value = "areaLevel",required = false) @Parameter(description = "区划等级",required = true) String areaLevel
    ) {
        List<Zcjbxx> zcjbxxList = zcjbxxService.list();
        return ResponseResult.success(zcjbxxList);
    }

}
